<!--
描述：实践环节-查看组件
开发人：fwb
开发日期：2017年12月11日
-->
<template lang="pug">
    kalix-dialog.user-add(bizKey="SetTemplateView" ref="kalixBizDialog" v-bind:formModel.sync="formModel" isView)
        div.el-form(slot="dialogFormSlot")
            el-form-item(label="模板代码" prop="mbdm" v-bind:label-width="labelWidth")
                el-input(v-model="formModel.mbdm" readonly)
            el-form-item(label="模板名称" prop="mbmc" v-bind:label-width="labelWidth")
                el-input(v-model="formModel.mbmc" readonly)
            el-form-item(label="课程类别" prop="kclb" v-bind:label-width="labelWidth" readonly)
                div.s-flex
                    kalix-dict-select.s-flex_item(v-model="formModel.kclb2"  appName="educational" dictType="课程类别2" readonly)
                    kalix-dict-select.s-flex_item(v-model="formModel.kclb3"  appName="educational" dictType="课程类别3" readonly)
                    kalix-dict-select.s-flex_item(v-model="formModel.kclb1"  appName="educational" dictType="课程类别1" readonly)
            el-form-item(label="课程/环节" prop="kchj" v-bind:label-width="labelWidth")
                kalix-dict-select(v-model="formModel.kchj"  appName="educational" dictType="课程/环节" readonly)
            el-form-item(label="状态" prop="zt" v-bind:label-width="labelWidth")
                kalix-dict-select(v-model="formModel.zt"  appName="educational" dictType="状态" )
            el-form-item(label="主修/辅修" prop="zxfx" v-bind:label-width="labelWidth")
                kalix-dict-select(v-model="formModel.zxfx"  appName="educational" dictType="主修/辅修" )
            el-form-item(label="备注" prop="bz" v-bind:label-width="labelWidth")
                el-input(v-model="formModel.bz" readonly)
</template>

<script type="text/ecmascript-6">
    import FormModel from './model'

    export default {
        name: 'SetTemplateView',
        data() {
            return {
                formModel: Object.assign({}, FormModel),
                labelWidth: '140px'
            }
        },
        methods: {}
    }
</script>
